<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Libs\Plugins\ECRecover\CryptoCurrency;

class SECp256k1
{
    public $a;
    public $b;
    public $p;
    public $n;
    public array $G = [];

    /**
     * __construct
     */
    public function __construct()
    {
        $this->a    = gmp_init('0', 10);
        $this->b    = gmp_init('7', 10);
        $this->p    = gmp_init('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F', 16);
        $this->n    = gmp_init('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141', 16);
        $this->G    = [
            'x' => gmp_init('55066263022277343669578718895168534326250603453777594175500187360389116729240'),
            'y' => gmp_init('32670510020758816978083085130507043184471273380659243275938904335757337482424'),
        ];
    }
}